var __extends =
    (this && this.__extends) ||
    (function () {
      var n = function (o, t) {
        return (n =
          Object.setPrototypeOf ||
          ({ __proto__: [] } instanceof Array &&
            function (n, o) {
              n.__proto__ = o;
            }) ||
          function (n, o) {
            for (var t in o)
              Object.prototype.hasOwnProperty.call(o, t) && (n[t] = o[t]);
          })(o, t);
      };
      return function (o, t) {
        function e() {
          this.constructor = o;
        }
        if ("function" != typeof t && null !== t)
          throw new TypeError(
            "Class extends value " + String(t) + " is not a constructor or null"
          );
        n(o, t),
          (o.prototype =
            null === t
              ? Object.create(t)
              : ((e.prototype = t.prototype), new e()));
      };
    })(),
  UnloadEquipmentView = (function (n) {
    function o() {
      var o = n.call(this) || this;
      return (
        o.btn_unloadCancle.on(Laya.Event.CLICK, o, o.close),
        o.btn_unloadSure.on(Laya.Event.CLICK, o, o.onDidClickSureUnloadAction),
        o
      );
    }
    return (
      __extends(o, n),
      (o.showSuboardUnloadView = function (n, t, e) {
        null == this.unloadView &&
          ((this.unloadView = new o()), (this.unloadView.zOrder = 1e3)),
          this.unloadView.popup(!0),
          (this.unloadView.unload_armyId = n),
          (this.unloadView.unload_cid = t),
          (this.unloadView.unload_location = e);
      }),
      (o.prototype.onDidClickSureUnloadAction = function () {
        WebSocketService.send({
          c: 4482,
          d: {
            action: "2",
            cid: this.unload_cid,
            aid: this.unload_armyId,
            location: this.unload_location,
          },
        });
      }),
      (o.close = function () {
        this.unloadView && this.unloadView.close();
      }),
      o
    );
  })(ui.UserInfoController.UnloadEquipmentViewUI);
